function validateSpecialChar(fld, name) {
	var error = "";
	var iChars = "!@#$%^&*()+=[]\\\';./{}|\":<>?";
	for ( var i = 0; i < fld.value.length; i++) {
		if (iChars.indexOf(fld.value.charAt(i)) != -1) {
			fld.style.background = 'Yellow';
			error = name + "Field has special characters.\n"
			return error;
		}
	}
	return error;
}

function validateFormOnSubmit(theForm) {
	document.forms.timesheet.submit();
}

function refreshMessage(msg, elementId) {
	if (msg != null) {
		document.getElementById('errorMessage1').style.visibility = 'hidden';
	} else {
		document.getElementById('errorMessage1').style.visibility = 'visible';
	}
}
function removeError() {
	if (document.getElementById('errorMessage1') != null) {
		document.getElementById('errorMessage1').style.visibility = 'hidden';
	}
}

function initializeFilePath(fPath){
	var filePath = fPath;
}
